﻿using SheepStorage.Domain.DTO.InputDto;
using SheepStorage.Domain.DTO.Output;
using SheepStorage.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepStorage.Service.Interface
{
    /// <summary>
    /// 部门服务接口
    /// </summary>
    public interface IDepartmentService
    {
        /// <summary>
        /// 部门添加
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        Task<int> AddDepartment(Department department);
      

        /// <summary>
        /// 部门显示
        /// </summary>
        /// <returns></returns>
        Task<PageOutput<Department>>  GetDepartmentList(string? DepartmentName, int pageIndex, int pageSize);

        /// <summary>
        /// 显示 用于导出
        /// </summary>
        /// <returns></returns>
        Task<List<Department>> GetDepartment();

        /// <summary>
        /// 部门删除
        /// </summary>
        /// <param name="departmentId"></param>
        /// <returns></returns>
        int DelDepartment(int  departmentId);

        /// <summary>
        /// 部门反填
        /// </summary>
        /// <param name="departmentId"></param>
        /// <returns></returns>
        Department GetFtDepartment(int departmentId);

        /// <summary>
        /// 修改部门
        /// </summary>
        /// <param name="department"></param>
        /// <returns></returns>
        Task<int> UpdaDepartment(Department department);


        /// <summary>
        /// 显示树型
        /// </summary>
        /// <returns></returns>
        Task<List<Cascader>> GetCascader(int departmentParentId); 
    }
}
